<?php

namespace App\Model;

use Illuminate\Database\Eloquent\Model;

class SystemModel extends Model
{
    //
    protected $table = 'system';

    public function getSys() {
        //读取数据库数据
        $data = self::first()->toArray();

        return $data;
    }

    //更新数据
    public function upSys($data) {
        
        $res = self::where('id',$data['id'])->update($data);

        return $res;
    }
}
